package cn.edu.scau.cmi.ningkehua.composite;

public class ConsistentPersonnel extends ConsistentOrganization{
	private String name;
	public String sym_name;
	
	public ConsistentPersonnel(String name) {
		this.name=name;
		this.sym_name=name;
	}
	public String getName() {
		return name;
		//CombinationSafeClient.sum.add(this);
	}
	public void setName(String name) {
		this.name = name;
	}
	public String say() {
		//CombinationSafeClient.team_num++;
		return this.name;
	}
	@Override
	public boolean team_or_personal() {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public void add() {
		// TODO Auto-generated method stub
		System.out.println("此方法无效，不能添加子节点，此方法不适用！");
		
	}

}
